/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.HinhAnhCuaMatHangDAO;
import com.miracleteam.miracle.dao.daoImpl.HinhAnhCuaMatHangDAOImpl;
import com.miracleteam.miracle.entities.Hinhanhcuamathang;
import com.miracleteam.miracle.services.HinhAnhCuaMatHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class HinhAnhCuaMatHangServiceImpl implements HinhAnhCuaMatHangService{
     public List LayDSHinhAnh(String maMH)
     {
         HinhAnhCuaMatHangDAO haDao=new HinhAnhCuaMatHangDAOImpl();
         return haDao.LayDSHinhAnh(maMH);
     }
     public String PhatSinhMaHinhAnh()
     {
         HinhAnhCuaMatHangDAO haDao=new HinhAnhCuaMatHangDAOImpl();
         return haDao.PhatSinhMaHinhAnh();
     }
       public boolean ThemHinhAnh(Hinhanhcuamathang ha)
       {
             HinhAnhCuaMatHangDAO haDao=new HinhAnhCuaMatHangDAOImpl();
            return haDao.ThemHinhAnh(ha);
       }
         public int  XoaAnh(String maMH)
         {
               HinhAnhCuaMatHangDAO haDao=new HinhAnhCuaMatHangDAOImpl();
               return haDao.XoaAnh(maMH);
         }
}
